<template>
  <div>
    <MyHeader />
    <router-view style="color: red"></router-view>
    <MyFooter v-show="$route.meta.show" />
  </div>
</template>

<script>
import MyHeader from "./components/Header";
import MyFooter from "./components/Footer";

export default {
  name: "App",
  components: { MyHeader, MyFooter },
  mounted() {
    this.$store.dispatch("categoryList");
  },
};
</script>

<style></style>
